package com.mogu.biguser.dao.biguser;

import com.mogu.biguser.domain.biguser.UserInfo;
import com.mogu.biguser.service.dto.biguser.BigUser;
import com.mogu.biguser.service.dto.statistics.StatisticsName;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Short id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Short id);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    int insertByBigUser(BigUser user);

    String isUserNum(BigUser user);

    /**
     * 档案
     * @param user
     * @return
     */
    List<BigUser> selListByBigUser(BigUser user);

    /**
     * 历史数据查询
     * @param user
     * @return
     */
    List<StatisticsName> selListByStatisName(BigUser user);

    int deleteByBatch(@Param("list") String[]list);
}